//
//  MarketDataAnalyzerAppDelegate.h
//  MarketDataAnalyzer
//
//  Created by jiro on 10/01/18.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "../Common/DbOperator.h"
#import "DataAnalyzer.h"

const int dbServerCrocessorCoreCount = 2;	//	必要ならばDBサーバから取得する。localhost で実行しているうちはここに書いておこう。

@interface MarketDataAnalyzerAppDelegate : NSObject <NSApplicationDelegate> {
 
	NSWindow *window;

	IBOutlet id calc2BrandsCorrelationCoefficientButton;

	IBOutlet id messageTextBox;

	IBOutlet id progressIndicator;

	IBOutlet id cancelButton;

	IBOutlet id startDatePicker;

	IBOutlet id monthInterval;

	DbInfo* dbInfo;

	NSThread* workingThread;

	bool isCancel;
}

- (id) init;

@property (assign) IBOutlet NSWindow *window;

- (IBAction) calc2BrandsCorrelationCoefficient: (id) sender;

- (IBAction) cancel: (id) sender;

- (IBAction) addCorrelationCoefficientCalcScgedule: (id) sender;

- (IBAction) freeButton: (id) sender;


- (void) calc2BrandsCorrelationCoefficientThreadFunc: (id) arg;

- (void) calcCorrelationCoefficientThreadFunc: (id) argument;


@end
